package com.tz.hotelmanager.mapper.impl;

import java.util.List;

import com.tz.hotelmanager.domain.User;
import com.tz.hotelmanager.domain.UserExample;
import com.tz.hotelmanager.mapper.UserMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserMapperImpl implements UserMapper {

  @Autowired 
  UserMapper UserMapper;
  @Override
  public int countByExample(UserExample example) {
     
    return  UserMapper.countByExample(example);
    
  }

  @Override
  public int deleteByExample(UserExample example) {
     
    return  UserMapper.deleteByExample(example);
  }

  @Override
  public int deleteByPrimaryKey(Integer id) {
     
    return  UserMapper.deleteByPrimaryKey(id);
  }

  @Override
  public int insert(User record) {
     
    return  UserMapper.insert(record);
  }

  @Override
  public int insertSelective(User record) {
     
    return  UserMapper.insertSelective(record);
  }

  @Override
  public List<User> selectByExample(UserExample example) {
     
   return  UserMapper.selectByExample(example);
  }

  @Override
  public User selectByPrimaryKey(Integer id) {
     
   return  UserMapper.selectByPrimaryKey(id);
  }

  @Override
  public int updateByExampleSelective(User record, UserExample example) {
     
    return  UserMapper.updateByExampleSelective(record,example);
  }

  @Override
  public int updateByExample(User record, UserExample example) {
     
    return  UserMapper.updateByExample(record,example);
  }

  @Override
  public int updateByPrimaryKeySelective(User record) {
     
    return  UserMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKey(User record) {
     
    return  UserMapper.updateByPrimaryKey(record);
  }
  
}